package com.zxp.oauth2.auth.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zxp
 * @date 2021/8/3 17:26
 */
@RestController
public class IndexController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/{id}")
    public String index(@PathVariable String id){
        return id+",端口port:"+port;
    }
}
